package com.huiyun.project.pay.client.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author tiger
 */
@Data
@Accessors(chain = true)
@ApiModel("退款请求信息")
public class RefundReq implements Serializable {
    @ApiModelProperty("商户编号")
    private String mchId;
    @ApiModelProperty("商户订单号")
    @NotBlank
    private String mchOrderNo;
    @ApiModelProperty("商户退款号")
    @NotBlank
    private String mchRefundNo;
    @ApiModelProperty("退款金额,参数为空退整个订单金额,单位为分")
    private Long refundAmount;
    @ApiModelProperty("金额单位,默认CNY")
    private String currency = "CNY";
    @ApiModelProperty("退款原因")
    private String refundDesc;
    @ApiModelProperty("退款操作人Id")
    @NotBlank
    private String optId;
    @ApiModelProperty("退款操作人")
    @NotBlank
    private String optName;
}
